#include "mlifeobject.h"

MLifeObject::MLifeObject()
{
}

MemoryPool* MLifeObject::spPoolInstance = 0;

MemoryPool& MLifeObject::rGetMemoryPool(size_t initialBlockSize)
{
    if( !spPoolInstance )
    {
        spPoolInstance = new MemoryPool( initialBlockSize );
    }

    return (*spPoolInstance);
}

void MLifeObject::destroyMemoryPool()
{
    delete spPoolInstance;
    spPoolInstance = 0;
}
